package com.example.mobile2121606110syc0510homework;

import android.content.Intent;
import android.os.Bundle;
import android.widget.Button;
import android.widget.TextView;

import androidx.appcompat.app.AppCompatActivity;

public class RegisterActivity extends AppCompatActivity {

    private TextView tvMainTitle2;
    private TextView tvMainUsername;
    private TextView tvMainTelephone;
    private TextView tvMainEmail;
    private TextView tvMainDate;
    private Button btnMainEnter;
    private TextView tvMainAusername;
    private TextView tvMainAtelephone;
    private TextView tvMainAemail;
    private TextView tvMainAdate;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_register);
        initView();
        Intent intent = getIntent();
        tvMainAusername.setText(intent.getStringExtra("username"));
        tvMainAtelephone.setText(intent.getStringExtra("telephone"));
        tvMainAemail.setText(intent.getStringExtra("email"));
        tvMainAdate.setText(intent.getStringExtra("date"));
    }

    private void initView() {
        tvMainTitle2 = (TextView) findViewById(R.id.tvMainTitle2);
        tvMainUsername = (TextView) findViewById(R.id.tvMainUsername);
        tvMainTelephone = (TextView) findViewById(R.id.tvMainTelephone);
        tvMainEmail = (TextView) findViewById(R.id.tvMainEmail);
        tvMainDate = (TextView) findViewById(R.id.tvMainDate);
        btnMainEnter = (Button) findViewById(R.id.btnMainEnter);
        tvMainAusername = (TextView) findViewById(R.id.tvMainAusername);
        tvMainAtelephone = (TextView) findViewById(R.id.tvMainAtelephone);
        tvMainAemail = (TextView) findViewById(R.id.tvMainAemail);
        tvMainAdate = (TextView) findViewById(R.id.tvMainAdate);
    }
}